\begin{longtable}{|c|c|c|c|}
\caption{A simple longtable example}\\
\hline 
\textbf{Slaves} & \textbf{Nodes} & \textbf{Queries/Sec} & \textbf{Deviations} \\
\hline
\endfirsthead
\multicolumn{4}{c}%
{\tablename\ \thetable\ -- \textit{Continued from previous page}} \\
\hline
\textbf{Slaves} & \textbf{Nodes} & \textbf{Queries/Sec} & \textbf{Deviations} \\
\hline
\endhead
\hline \multicolumn{4}{r}{\textit{Continued on next page}} \\
\endfoot
\hline
\endlastfoot
50 & 8 & 8136.07 & 50760.96 \\
50 & 16 & 8309.59 & 26087.89 \\
50 & 32 & 7450.88 & 17307.35 \\
50 & 64 & 5715.12 & 8273.95 \\
50 & 100 & 4662.93 & 5213.96 \\
50 & 150 & 4979.48 & 3503.27 \\
50 & 200 & 4656.89 & 2387.68 \\
200 & 8 & 12344.57 & 33166.46 \\
200 & 16 & 11522.97 & 31669.72 \\
200 & 32 & 11439.43 & 16513.47 \\
200 & 64 & 12790.96 & 8258.23 \\
200 & 100 & 10034.5 & 5312.52 \\
200 & 150 & 9446.48 & 3393.77 \\
200 & 200 & 8299.09 & 2603.2 \\
600 & 8 & 8772.99 & 51520.4 \\
600 & 16 & 11816.34 & 24701.32 \\
600 & 32 & 13503.39 & 13175.02 \\
600 & 64 & 14594.38 & 7736.08 \\
600 & 100 & 15357.12 & 4986.87 \\
600 & 150 & 13347.87 & 3338.66 \\
600 & 200 & 11300.08 & 2563.44 \\
\hline
\end{longtable}
